package com.hong.student.systemDB;


import org.springframework.stereotype.Component;

@Component(value = "score")
public class Score {
    private Integer id;
    private String number;
    private Double Chinese;
    private Double math;
    private Double English;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Double getChinese() {
        return Chinese;
    }

    public void setChinese(Double chinese) {
        Chinese = chinese;
    }

    public Double getMath() {
        return math;
    }

    public void setMath(Double math) {
        this.math = math;
    }

    public Double getEnglish() {
        return English;
    }

    public void setEnglish(Double english) {
        English = english;
    }

    @Override
    public String toString() {
        return "学生成绩表如下：\n" +
               "学号："+number+"\n"+
                "语文："+Chinese+"\n"+
                "数学："+math+"\n"+
                "英语："+English+"\n"
                ;
    }
}
